3.7 \(\int \frac{d+e x}{\left (a+b x^n+c x^{2 n}\right )^2} \, dx\)

Optimal. Leaf size=738 \[ -\frac{2 b c^2 e (2-n) x^{n+2} \, _2F_1\left (1,\frac{n+2}{n};2 \left (1+\frac{1}{n}\right );-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}\right )}{a n (n+2) \left (b^2-4 a c\right )^{3/2} \left (b-\sqrt{b^2-4 a c}\right )}+\frac{2 b c^2 e (2-n) x^{n+2} \, _2F_1\left (1,\frac{n+2}{n};2 \left (1+\frac{1}{n}\right );-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{a n (n+2) \left (b^2-4 a c\right )^{3/2} \left (\sqrt{b^2-4 a c}+b\right )}-\frac{c d x \left (-b (1-n) \sqrt{b^2-4 a c}+4 a c (1-2 n)+b^2 (-(1-n))\right ) \, _2F_1\left (1,\frac{1}{n};1+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}\right )}{a n \left (b^2-4 a c\right ) \left (-b \sqrt{b^2-4 a c}-4 a c+b^2\right )}-\frac{c d x \left (b (1-n) \sqrt{b^2-4 a c}+4 a c (1-2 n)+b^2 (-(1-n))\right ) \, _2F_1\left (1,\frac{1}{n};1+\frac{1}{n};-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{a n \left (b^2-4 a c\right ) \left (b \sqrt{b^2-4 a c}-4 a c+b^2\right )}+\frac{d x \left (-2 a c+b^2+b c x^n\right )}{a n \left (b^2-4 a c\right ) \left (a+b x^n+c x^{2 n}\right )}-\frac{c e x^2 \left (4 a c (1-n)-b^2 (2-n)\right ) \, _2F_1\left (1,\frac{2}{n};\frac{n+2}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}\right )}{a n \left (b^2-4 a c\right ) \left (-b \sqrt{b^2-4 a c}-4 a c+b^2\right )}-\frac{c e x^2 \left (4 a c (1-n)-b^2 (2-n)\right ) \, _2F_1\left (1,\frac{2}{n};\frac{n+2}{n};-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{a n \left (b^2-4 a c\right ) \left (b \sqrt{b^2-4 a c}-4 a c+b^2\right )}+\frac{e x^2 \left (-2 a c+b^2+b c x^n\right )}{a n \left (b^2-4 a c\right ) \left (a+b x^n+c x^{2 n}\right )} \]

[Out]

(d*x*(b^2 - 2*a*c + b*c*x^n))/(a*(b^2 - 4*a*c)*n*(a + b*x^n + c*x^(2*n))) + (e*x
^2*(b^2 - 2*a*c + b*c*x^n))/(a*(b^2 - 4*a*c)*n*(a + b*x^n + c*x^(2*n))) - (c*d*(
4*a*c*(1 - 2*n) - b^2*(1 - n) - b*Sqrt[b^2 - 4*a*c]*(1 - n))*x*Hypergeometric2F1
[1, n^(-1), 1 + n^(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)*(b
^2 - 4*a*c - b*Sqrt[b^2 - 4*a*c])*n) - (c*d*(4*a*c*(1 - 2*n) - b^2*(1 - n) + b*S
qrt[b^2 - 4*a*c]*(1 - n))*x*Hypergeometric2F1[1, n^(-1), 1 + n^(-1), (-2*c*x^n)/
(b + Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)*(b^2 - 4*a*c + b*Sqrt[b^2 - 4*a*c])*n
) - (c*e*(4*a*c*(1 - n) - b^2*(2 - n))*x^2*Hypergeometric2F1[1, 2/n, (2 + n)/n,
(-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)*(b^2 - 4*a*c - b*Sqrt[b^2
- 4*a*c])*n) - (c*e*(4*a*c*(1 - n) - b^2*(2 - n))*x^2*Hypergeometric2F1[1, 2/n,
(2 + n)/n, (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)*(b^2 - 4*a*c +
b*Sqrt[b^2 - 4*a*c])*n) - (2*b*c^2*e*(2 - n)*x^(2 + n)*Hypergeometric2F1[1, (2 +
 n)/n, 2*(1 + n^(-1)), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)^(3/
2)*(b - Sqrt[b^2 - 4*a*c])*n*(2 + n)) + (2*b*c^2*e*(2 - n)*x^(2 + n)*Hypergeomet
ric2F1[1, (2 + n)/n, 2*(1 + n^(-1)), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/(a*(b^
2 - 4*a*c)^(3/2)*(b + Sqrt[b^2 - 4*a*c])*n*(2 + n))

_______________________________________________________________________________________

Rubi [A]  time = 2.89673, antiderivative size = 738, normalized size of antiderivative = 1., number of steps used = 15, number of rules used = 8, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.364 \[ -\frac{2 b c^2 e (2-n) x^{n+2} \, _2F_1\left (1,\frac{n+2}{n};2 \left (1+\frac{1}{n}\right );-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}\right )}{a n (n+2) \left (b^2-4 a c\right )^{3/2} \left (b-\sqrt{b^2-4 a c}\right )}+\frac{2 b c^2 e (2-n) x^{n+2} \, _2F_1\left (1,\frac{n+2}{n};2 \left (1+\frac{1}{n}\right );-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{a n (n+2) \left (b^2-4 a c\right )^{3/2} \left (\sqrt{b^2-4 a c}+b\right )}-\frac{c d x \left (-b (1-n) \sqrt{b^2-4 a c}+4 a c (1-2 n)+b^2 (-(1-n))\right ) \, _2F_1\left (1,\frac{1}{n};1+\frac{1}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}\right )}{a n \left (b^2-4 a c\right ) \left (-b \sqrt{b^2-4 a c}-4 a c+b^2\right )}-\frac{c d x \left (b (1-n) \sqrt{b^2-4 a c}+4 a c (1-2 n)+b^2 (-(1-n))\right ) \, _2F_1\left (1,\frac{1}{n};1+\frac{1}{n};-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{a n \left (b^2-4 a c\right ) \left (b \sqrt{b^2-4 a c}-4 a c+b^2\right )}+\frac{d x \left (-2 a c+b^2+b c x^n\right )}{a n \left (b^2-4 a c\right ) \left (a+b x^n+c x^{2 n}\right )}-\frac{c e x^2 \left (4 a c (1-n)-b^2 (2-n)\right ) \, _2F_1\left (1,\frac{2}{n};\frac{n+2}{n};-\frac{2 c x^n}{b-\sqrt{b^2-4 a c}}\right )}{a n \left (b^2-4 a c\right ) \left (-b \sqrt{b^2-4 a c}-4 a c+b^2\right )}-\frac{c e x^2 \left (4 a c (1-n)-b^2 (2-n)\right ) \, _2F_1\left (1,\frac{2}{n};\frac{n+2}{n};-\frac{2 c x^n}{b+\sqrt{b^2-4 a c}}\right )}{a n \left (b^2-4 a c\right ) \left (b \sqrt{b^2-4 a c}-4 a c+b^2\right )}+\frac{e x^2 \left (-2 a c+b^2+b c x^n\right )}{a n \left (b^2-4 a c\right ) \left (a+b x^n+c x^{2 n}\right )} \]

Antiderivative was successfully verified.

[In]  Int[(d + e*x)/(a + b*x^n + c*x^(2*n))^2,x]

[Out]

(d*x*(b^2 - 2*a*c + b*c*x^n))/(a*(b^2 - 4*a*c)*n*(a + b*x^n + c*x^(2*n))) + (e*x
^2*(b^2 - 2*a*c + b*c*x^n))/(a*(b^2 - 4*a*c)*n*(a + b*x^n + c*x^(2*n))) - (c*d*(
4*a*c*(1 - 2*n) - b^2*(1 - n) - b*Sqrt[b^2 - 4*a*c]*(1 - n))*x*Hypergeometric2F1
[1, n^(-1), 1 + n^(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)*(b
^2 - 4*a*c - b*Sqrt[b^2 - 4*a*c])*n) - (c*d*(4*a*c*(1 - 2*n) - b^2*(1 - n) + b*S
qrt[b^2 - 4*a*c]*(1 - n))*x*Hypergeometric2F1[1, n^(-1), 1 + n^(-1), (-2*c*x^n)/
(b + Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)*(b^2 - 4*a*c + b*Sqrt[b^2 - 4*a*c])*n
) - (c*e*(4*a*c*(1 - n) - b^2*(2 - n))*x^2*Hypergeometric2F1[1, 2/n, (2 + n)/n,
(-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)*(b^2 - 4*a*c - b*Sqrt[b^2
- 4*a*c])*n) - (c*e*(4*a*c*(1 - n) - b^2*(2 - n))*x^2*Hypergeometric2F1[1, 2/n,
(2 + n)/n, (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)*(b^2 - 4*a*c +
b*Sqrt[b^2 - 4*a*c])*n) - (2*b*c^2*e*(2 - n)*x^(2 + n)*Hypergeometric2F1[1, (2 +
 n)/n, 2*(1 + n^(-1)), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])])/(a*(b^2 - 4*a*c)^(3/
2)*(b - Sqrt[b^2 - 4*a*c])*n*(2 + n)) + (2*b*c^2*e*(2 - n)*x^(2 + n)*Hypergeomet
ric2F1[1, (2 + n)/n, 2*(1 + n^(-1)), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/(a*(b^
2 - 4*a*c)^(3/2)*(b + Sqrt[b^2 - 4*a*c])*n*(2 + n))

_______________________________________________________________________________________

Rubi in Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((e*x+d)/(a+b*x**n+c*x**(2*n))**2,x)

[Out]

Timed out

_______________________________________________________________________________________

Mathematica [B]  time = 6.44303, size = 4162, normalized size = 5.64 \[ \text{Result too large to show} \]

Antiderivative was successfully verified.

[In]  Integrate[(d + e*x)/(a + b*x^n + c*x^(2*n))^2,x]

[Out]

(x*(d + e*x)*(-b^2 + 2*a*c - b*c*x^n))/(a*(-b^2 + 4*a*c)*n*(a + b*x^n + c*x^(2*n
))) - (b*c*e*x^(2 + n)*(x^n)^(2/n - (2 + n)/n)*(-(Hypergeometric2F1[-2/n, -2/n,
(-2 + n)/n, -(-b - Sqrt[b^2 - 4*a*c])/(2*c*(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^
n))]/(Sqrt[b^2 - 4*a*c]*(x^n/(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^(2/n))) +
Hypergeometric2F1[-2/n, -2/n, (-2 + n)/n, -(-b + Sqrt[b^2 - 4*a*c])/(2*c*(-(-b +
 Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(Sqrt[b^2 - 4*a*c]*(x^n/(-(-b + Sqrt[b^2 - 4*
a*c])/(2*c) + x^n))^(2/n))))/(2*a*(-b^2 + 4*a*c)) + (b*c*e*x^(2 + n)*(x^n)^(2/n
- (2 + n)/n)*(-(Hypergeometric2F1[-2/n, -2/n, (-2 + n)/n, -(-b - Sqrt[b^2 - 4*a*
c])/(2*c*(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(Sqrt[b^2 - 4*a*c]*(x^n/(-(-b
 - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^(2/n))) + Hypergeometric2F1[-2/n, -2/n, (-2
+ n)/n, -(-b + Sqrt[b^2 - 4*a*c])/(2*c*(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]
/(Sqrt[b^2 - 4*a*c]*(x^n/(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^(2/n))))/(a*(-
b^2 + 4*a*c)*n) + (b^2*e*x^2*((1 - Hypergeometric2F1[-2/n, -2/n, (-2 + n)/n, -(-
b - Sqrt[b^2 - 4*a*c])/(2*c*(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^n/(-(-b
 - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^(2/n))/((b*(-b - Sqrt[b^2 - 4*a*c]))/(2*c) +
 (-b - Sqrt[b^2 - 4*a*c])^2/(2*c)) + (1 - Hypergeometric2F1[-2/n, -2/n, (-2 + n)
/n, -(-b + Sqrt[b^2 - 4*a*c])/(2*c*(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^
n/(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^(2/n))/((b*(-b + Sqrt[b^2 - 4*a*c]))/
(2*c) + (-b + Sqrt[b^2 - 4*a*c])^2/(2*c))))/(2*a*(-b^2 + 4*a*c)) - (2*c*e*x^2*((
1 - Hypergeometric2F1[-2/n, -2/n, (-2 + n)/n, -(-b - Sqrt[b^2 - 4*a*c])/(2*c*(-(
-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^n/(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x
^n))^(2/n))/((b*(-b - Sqrt[b^2 - 4*a*c]))/(2*c) + (-b - Sqrt[b^2 - 4*a*c])^2/(2*
c)) + (1 - Hypergeometric2F1[-2/n, -2/n, (-2 + n)/n, -(-b + Sqrt[b^2 - 4*a*c])/(
2*c*(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^n/(-(-b + Sqrt[b^2 - 4*a*c])/(2
*c) + x^n))^(2/n))/((b*(-b + Sqrt[b^2 - 4*a*c]))/(2*c) + (-b + Sqrt[b^2 - 4*a*c]
)^2/(2*c))))/(-b^2 + 4*a*c) - (b^2*e*x^2*((1 - Hypergeometric2F1[-2/n, -2/n, (-2
 + n)/n, -(-b - Sqrt[b^2 - 4*a*c])/(2*c*(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))
]/(x^n/(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^(2/n))/((b*(-b - Sqrt[b^2 - 4*a*
c]))/(2*c) + (-b - Sqrt[b^2 - 4*a*c])^2/(2*c)) + (1 - Hypergeometric2F1[-2/n, -2
/n, (-2 + n)/n, -(-b + Sqrt[b^2 - 4*a*c])/(2*c*(-(-b + Sqrt[b^2 - 4*a*c])/(2*c)
+ x^n))]/(x^n/(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^(2/n))/((b*(-b + Sqrt[b^2
 - 4*a*c]))/(2*c) + (-b + Sqrt[b^2 - 4*a*c])^2/(2*c))))/(a*(-b^2 + 4*a*c)*n) + (
2*c*e*x^2*((1 - Hypergeometric2F1[-2/n, -2/n, (-2 + n)/n, -(-b - Sqrt[b^2 - 4*a*
c])/(2*c*(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^n/(-(-b - Sqrt[b^2 - 4*a*c
])/(2*c) + x^n))^(2/n))/((b*(-b - Sqrt[b^2 - 4*a*c]))/(2*c) + (-b - Sqrt[b^2 - 4
*a*c])^2/(2*c)) + (1 - Hypergeometric2F1[-2/n, -2/n, (-2 + n)/n, -(-b + Sqrt[b^2
 - 4*a*c])/(2*c*(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^n/(-(-b + Sqrt[b^2
- 4*a*c])/(2*c) + x^n))^(2/n))/((b*(-b + Sqrt[b^2 - 4*a*c]))/(2*c) + (-b + Sqrt[
b^2 - 4*a*c])^2/(2*c))))/((-b^2 + 4*a*c)*n) - (b*c*d*x^(1 + n)*(x^n)^(n^(-1) - (
1 + n)/n)*(-(Hypergeometric2F1[-n^(-1), -n^(-1), (-1 + n)/n, -(-b - Sqrt[b^2 - 4
*a*c])/(2*c*(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(Sqrt[b^2 - 4*a*c]*(x^n/(-
(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^n^(-1))) + Hypergeometric2F1[-n^(-1), -n^
(-1), (-1 + n)/n, -(-b + Sqrt[b^2 - 4*a*c])/(2*c*(-(-b + Sqrt[b^2 - 4*a*c])/(2*c
) + x^n))]/(Sqrt[b^2 - 4*a*c]*(x^n/(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^n^(-
1))))/(a*(-b^2 + 4*a*c)) + (b*c*d*x^(1 + n)*(x^n)^(n^(-1) - (1 + n)/n)*(-(Hyperg
eometric2F1[-n^(-1), -n^(-1), (-1 + n)/n, -(-b - Sqrt[b^2 - 4*a*c])/(2*c*(-(-b -
 Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(Sqrt[b^2 - 4*a*c]*(x^n/(-(-b - Sqrt[b^2 - 4*
a*c])/(2*c) + x^n))^n^(-1))) + Hypergeometric2F1[-n^(-1), -n^(-1), (-1 + n)/n, -
(-b + Sqrt[b^2 - 4*a*c])/(2*c*(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(Sqrt[b^
2 - 4*a*c]*(x^n/(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^n^(-1))))/(a*(-b^2 + 4*
a*c)*n) + (b^2*d*x*((1 - Hypergeometric2F1[-n^(-1), -n^(-1), (-1 + n)/n, -(-b -
Sqrt[b^2 - 4*a*c])/(2*c*(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^n/(-(-b - S
qrt[b^2 - 4*a*c])/(2*c) + x^n))^n^(-1))/((b*(-b - Sqrt[b^2 - 4*a*c]))/(2*c) + (-
b - Sqrt[b^2 - 4*a*c])^2/(2*c)) + (1 - Hypergeometric2F1[-n^(-1), -n^(-1), (-1 +
 n)/n, -(-b + Sqrt[b^2 - 4*a*c])/(2*c*(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/
(x^n/(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^n^(-1))/((b*(-b + Sqrt[b^2 - 4*a*c
]))/(2*c) + (-b + Sqrt[b^2 - 4*a*c])^2/(2*c))))/(a*(-b^2 + 4*a*c)) - (4*c*d*x*((
1 - Hypergeometric2F1[-n^(-1), -n^(-1), (-1 + n)/n, -(-b - Sqrt[b^2 - 4*a*c])/(2
*c*(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^n/(-(-b - Sqrt[b^2 - 4*a*c])/(2*
c) + x^n))^n^(-1))/((b*(-b - Sqrt[b^2 - 4*a*c]))/(2*c) + (-b - Sqrt[b^2 - 4*a*c]
)^2/(2*c)) + (1 - Hypergeometric2F1[-n^(-1), -n^(-1), (-1 + n)/n, -(-b + Sqrt[b^
2 - 4*a*c])/(2*c*(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^n/(-(-b + Sqrt[b^2
 - 4*a*c])/(2*c) + x^n))^n^(-1))/((b*(-b + Sqrt[b^2 - 4*a*c]))/(2*c) + (-b + Sqr
t[b^2 - 4*a*c])^2/(2*c))))/(-b^2 + 4*a*c) - (b^2*d*x*((1 - Hypergeometric2F1[-n^
(-1), -n^(-1), (-1 + n)/n, -(-b - Sqrt[b^2 - 4*a*c])/(2*c*(-(-b - Sqrt[b^2 - 4*a
*c])/(2*c) + x^n))]/(x^n/(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^n^(-1))/((b*(-
b - Sqrt[b^2 - 4*a*c]))/(2*c) + (-b - Sqrt[b^2 - 4*a*c])^2/(2*c)) + (1 - Hyperge
ometric2F1[-n^(-1), -n^(-1), (-1 + n)/n, -(-b + Sqrt[b^2 - 4*a*c])/(2*c*(-(-b +
Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]/(x^n/(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^
n^(-1))/((b*(-b + Sqrt[b^2 - 4*a*c]))/(2*c) + (-b + Sqrt[b^2 - 4*a*c])^2/(2*c)))
)/(a*(-b^2 + 4*a*c)*n) + (2*c*d*x*((1 - Hypergeometric2F1[-n^(-1), -n^(-1), (-1
+ n)/n, -(-b - Sqrt[b^2 - 4*a*c])/(2*c*(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))]
/(x^n/(-(-b - Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^n^(-1))/((b*(-b - Sqrt[b^2 - 4*a*
c]))/(2*c) + (-b - Sqrt[b^2 - 4*a*c])^2/(2*c)) + (1 - Hypergeometric2F1[-n^(-1),
 -n^(-1), (-1 + n)/n, -(-b + Sqrt[b^2 - 4*a*c])/(2*c*(-(-b + Sqrt[b^2 - 4*a*c])/
(2*c) + x^n))]/(x^n/(-(-b + Sqrt[b^2 - 4*a*c])/(2*c) + x^n))^n^(-1))/((b*(-b + S
qrt[b^2 - 4*a*c]))/(2*c) + (-b + Sqrt[b^2 - 4*a*c])^2/(2*c))))/((-b^2 + 4*a*c)*n
)

_______________________________________________________________________________________

Maple [F]  time = 0.11, size = 0, normalized size = 0. \[ \int{\frac{ex+d}{ \left ( a+b{x}^{n}+c{x}^{2\,n} \right ) ^{2}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((e*x+d)/(a+b*x^n+c*x^(2*n))^2,x)

[Out]

int((e*x+d)/(a+b*x^n+c*x^(2*n))^2,x)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \frac{{\left (b^{2} e - 2 \, a c e\right )} x^{2} +{\left (b c e x^{2} + b c d x\right )} x^{n} +{\left (b^{2} d - 2 \, a c d\right )} x}{a^{2} b^{2} n - 4 \, a^{3} c n +{\left (a b^{2} c n - 4 \, a^{2} c^{2} n\right )} x^{2 \, n} +{\left (a b^{3} n - 4 \, a^{2} b c n\right )} x^{n}} - \int \frac{2 \, a c d{\left (2 \, n - 1\right )} - b^{2} d{\left (n - 1\right )} -{\left (b c e{\left (n - 2\right )} x + b c d{\left (n - 1\right )}\right )} x^{n} +{\left (4 \, a c e{\left (n - 1\right )} - b^{2} e{\left (n - 2\right )}\right )} x}{a^{2} b^{2} n - 4 \, a^{3} c n +{\left (a b^{2} c n - 4 \, a^{2} c^{2} n\right )} x^{2 \, n} +{\left (a b^{3} n - 4 \, a^{2} b c n\right )} x^{n}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)/(c*x^(2*n) + b*x^n + a)^2,x, algorithm="maxima")

[Out]

((b^2*e - 2*a*c*e)*x^2 + (b*c*e*x^2 + b*c*d*x)*x^n + (b^2*d - 2*a*c*d)*x)/(a^2*b
^2*n - 4*a^3*c*n + (a*b^2*c*n - 4*a^2*c^2*n)*x^(2*n) + (a*b^3*n - 4*a^2*b*c*n)*x
^n) - integrate((2*a*c*d*(2*n - 1) - b^2*d*(n - 1) - (b*c*e*(n - 2)*x + b*c*d*(n
 - 1))*x^n + (4*a*c*e*(n - 1) - b^2*e*(n - 2))*x)/(a^2*b^2*n - 4*a^3*c*n + (a*b^
2*c*n - 4*a^2*c^2*n)*x^(2*n) + (a*b^3*n - 4*a^2*b*c*n)*x^n), x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{e x + d}{c^{2} x^{4 \, n} + 2 \, a b x^{n} + a^{2} +{\left (2 \, b c x^{n} + b^{2} + 2 \, a c\right )} x^{2 \, n}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)/(c*x^(2*n) + b*x^n + a)^2,x, algorithm="fricas")

[Out]

integral((e*x + d)/(c^2*x^(4*n) + 2*a*b*x^n + a^2 + (2*b*c*x^n + b^2 + 2*a*c)*x^
(2*n)), x)

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x+d)/(a+b*x**n+c*x**(2*n))**2,x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{e x + d}{{\left (c x^{2 \, n} + b x^{n} + a\right )}^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x + d)/(c*x^(2*n) + b*x^n + a)^2,x, algorithm="giac")

[Out]

integrate((e*x + d)/(c*x^(2*n) + b*x^n + a)^2, x)